<?php if (count($news) > 0): foreach ($news as $new):?>
            <?php
                $uri = get_base_url() . url_title(trim($new->category), 'dash', TRUE) . '/' . url_title(trim($new->title), 'dash', TRUE) . '-n' . $new->cat_id . '-' . $new->id;
                $thumbnail = ($new->thumbnail != '') ? $new->thumbnail : '/images/noimage.jpg';
            ?>
            <div class="row-fluid">
                <a href="<?php echo $uri;?>"><h2 class="detail_main_s"><?php echo $new->title; ?></h2></a>
                <div class="wrapper">
                    <figure class="img-indent img-indent-none-ml">
                        <a href="<?php echo $uri;?>">
                            <span class="img-box"><img src="<?php echo $thumbnail; ?>" alt="<?php echo $new->title;?>" title="<?php echo $new->title;?>"></span>
                        </a>
                    </figure>
                    <div class="extra-wrap indent-top1">
                        <h6 class="p3-1">
                            <?php echo $new->summary; ?>
                        </h6>
                        <?php echo shorten_str(strip_tags($new->content), MAXLENGHT_NEWS_DESCRIPTION); ?>
                    </div>
                </div>
            </div>
<?php
endforeach;
endif;
echo (isset($pagination) && trim($pagination) != '') ? '<div class="pagination">' . $pagination . '</div>' : '';
?>